﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package scripting {

    public class Condition {

        protected var m_eval:Function = null;
        protected var m_args:Object = null;

        public function Condition(_arg1:Function, _arg2:Object=null){
            this.m_eval = _arg1;
            this.m_args = _arg2;
        }
        public function set args(_arg1:Object):void{
            this.m_args = _arg1;
        }
        public function evaluate():Boolean{
            return (((!((this.m_eval == null))) && (this.m_eval.call(null, this.m_args))));
        }

    }
}//package scripting 
